﻿namespace EyeOpen.PassingData.Windows
{
	using System.Windows.Forms;

	public partial class CustomerForm : Form
	{
		private readonly Customer customer;

		public CustomerForm(Customer customer)
		{
			this.customer = customer;
			InitializeComponent();
		}

		private void SaveClick(object sender, System.EventArgs e)
		{
			customer.Name = nameTextBox.Text;

			Close();
		}
	}
}
